package com.sinosoft.hydra.um.services;

import java.util.List;

import com.sinosoft.hydra.um.domain.permission.SysLogErrorMessage;
import com.sinosoft.hydra.um.repositories.SysLogErrorMessageRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 错误日志信息业务层
 * @author Administrator
 *
 */
@Service
public class SysLogErrorMessageService {
    @Autowired
    private SysLogErrorMessageRepository sysLogErrorMessageRepository;
    /**
     * 根据日志id查询错误信息
     * @param id
     * @return
     */


    public List<SysLogErrorMessage> findByLogInfo(String id) {
        return sysLogErrorMessageRepository.findByLogInfo(id);
    }


    public void deleteFromInfo(List<String> li) {
        sysLogErrorMessageRepository.deleteFromInfo(li);
    }
}
